import {selSQL,exSQL} from '@/utils/SQLiteRequest.js'
import getUUId from '@/utils/uniIDUtils.js'

export function getPersons(){
	var sqlStr = 'SELECT * FROM person';
	return selSQL(sqlStr);
}
export function addPerson(userName,tips){
	var Id = getUUId();
	var sqlStr = `INSERT INTO person VALUES("${Id}","${userName}","${tips}")`;
	return exSQL(sqlStr);
}